onEvent('recipes', (event) => {

    /*
    "psi:psimetal":{"recipe":{"type":"psi:trick_crafting",
    "input":{"tag":"forge:ingots/gold"},
    "output":{"item":"psi:psimetal"},
    "cad":{"item":"psi:cad_assembly_iron"},
    "trick":"psi:trick_infusion"}}
    */
    const trick_ion = [
        {
            input: 'astralsorcery:starmetal_ingot',
            output: 'psi:psimetal'
        },
        {
            input: 'astralsorcery:starmetal',
            output: 'psi:psimetal_block'
        },
        {
            input: 'minecraft:magma_block',
            output: 'minecraft:netherrack'
        },
        {
            input: 'minecraft:ghast_tear',
            output: 'forbidden_arcanus:arcane_crystal_dust_speck'
        },
        {
            input: 'evilcraft:blood_pearl_of_teleportation',
            output: 'bloodmagic:weakbloodorb'
        },
        {
            input: 'evilcraft:undead_sapling',
            output: 'minecraft:oak_sapling'
        }
    ];
    trick_ion.forEach((recipes) => {
        event.custom({
            "type": "psi:trick_crafting",
            "input": { "item": recipes.input },
            "output": { "item": recipes.output },
            "cad": { "item": "psi:cad_assembly_iron" },
            "trick": "psi:trick_infusion"
        });
    });

    const recipes = [
        {
            input: 'emendatusenigmatica:invar_dust',
            output: "psi:psidust"
        },
        {
            input: 'evilcraft:dark_power_gem',
            output: 'evilcraft:dark_gem_crushed'
        },
        {
            input: 'kubejs:coarse_crystal_ingot',
            output: 'astralsorcery:rock_crystal'
        },
        {
            input: 'minecraft:leather',
            output: 'astralsorcery:parchment'
        }
    ];

    recipes.forEach((recipes) => {
        event.custom({
            "type": "psi:trick_crafting",
            "input": { "item": recipes.input },
            "output": { "item": recipes.output },
            "cad": { "item": "psi:cad_assembly_iron" }
        });
    });


    event.custom({
        "type": "psi:trick_crafting",
        "input": { "item": 'create:refined_radiance' },
        "output": { "item": 'psi:ivory_substance' },
        "cad": { "item": "psi:cad_assembly_iron" },
        "trick": "psi:trick_ebony_ivory"
    });

    event.custom({
        "type": "psi:trick_crafting",
        "input": { "item": 'create:shadow_steel' },
        "output": { "item": 'psi:ebony_substance' },
        "cad": { "item": "psi:cad_assembly_iron" },
        "trick": "psi:trick_ebony_ivory"
    });
});

//Item.of('psi:cad', '{componentASSEMBLY:{id:"psi:cad_assembly_iron",Count:1b}}')